package com.tarena.lbs.coupon;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


@EnableDubbo
@SpringBootApplication
@EnableJpaRepositories(basePackages = {
        "com.tarena.lbs.coupon.dao.repository",
        "com.tarena.lbs.coupon.dao.repository" // 添加activity模块的扫描路径
})
@EntityScan(basePackages = {
        "com.tarena.lbs.coupon.dao.po",
        "com.tarena.lbs.activity.dao.po" // 添加activity实体类路径
})
public class CouponApplication {
    public static void main(String[] args) {
        SpringApplication.run(CouponApplication.class, args);
    }
}